<?php

Class Phone extends Commodity
{
    private $name;
    private $Inventory;
    private $price;
    private $type;
    private $made;

    function show()
    {
        echo $this->type.$this->name."卖".$this->price."块钱".$this->made."生产"."<br>";
    }

    function __set($name, $value)
    {
        $this->$name=$value;
    }
}